Dear all, Can @For be used on Web Application? I have tried but it seems like does not work. My formula is as below : @For(n := 1; n <= @Elements(AllStaff); n := n + 1; @SetField("Leave"+@Text(n); AllStaff[n]); xKey := @Text(@Year(@Today)) + Applicant+AllStaff[n]; Tkn_process :=@DbLookup("":"NoCache"; @DbName; "WLS"; xKey; "NoOfDay");Tot :=@If(@IsError(@Sum(Tkn_process)); 0; @Sum(Tkn_process)); @SetField("Day"+@Text(n); Tot))
Go back